package com.xiaomi.auto.service;

import com.xiaomi.auto.dao.UserDao;

public class UserServiceImpl implements UserService {

    // 定义属性
    private UserDao userDao;
    // 定义set方法
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void login() {
        // 调用dao层的login方法
        System.out.println("service层的login方法");
        userDao.login();
    }
}
